
<template>
  <el-button type="primary" icon="search" @click="getData">获取数据</el-button>

  <div class="tw-text-center tw-bg-amber-200" style="height: 100px;width: 100%;">测试</div>

</template>

<script setup>

    let getData = ()=>{
      alert('获取数据')
    }
</script>

<style scoped>

</style>
